package com.ziyueyuwen.xiniao.bean.ao;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author wancheng  on 2018/12/24.
 */
public class ClassInfoAO {

    private Integer classId;
    @NotNull(message = "courseId不能为空")
    private Integer courseId;
    @NotEmpty(message = "班级名称不能为空")
    private String className;
    @NotEmpty(message = "老师手机号码不能为空")
    private String teacherAccount;
    @NotEmpty(message = "班主任手机号码不能为空")
    private String masterAccount;
    @NotNull(message = "学生上限不能为空")
    @Min(value = 1,message = "学生上限最小值为{value}")
    private Integer studentNum;

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTeacherAccount() {
        return teacherAccount;
    }

    public void setTeacherAccount(String teacherAccount) {
        this.teacherAccount = teacherAccount;
    }

    public String getMasterAccount() {
        return masterAccount;
    }

    public void setMasterAccount(String masterAccount) {
        this.masterAccount = masterAccount;
    }

    public Integer getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(Integer studentNum) {
        this.studentNum = studentNum;
    }
}
